package com.xiaoshi.system.qo;

import cn.hutool.core.util.StrUtil;
import com.xiaoshi.common.BaseQo;
import lombok.Data;

/**
 * @auther yuankai
 * @datetime 2021/12/6 19:18
 * @desc
 */
@Data
public class SysDictDataQo extends BaseQo {

    private String createStartTime;//创建开始时间

    private String createEndTime;//创建结束时间

    private Integer dictId;//字典ID

    private String type;//字典类型

    private String label;//标签

    private String value;//值

    public String getCreateStartTime() {
        return createStartTime;
    }

    public void setCreateStartTime(String createStartTime) {
        if(StrUtil.isNotEmpty(createStartTime)){
            createStartTime = createStartTime + " 00:00:00";
        }
        this.createStartTime = createStartTime;
    }

    public String getCreateEndTime() {
        return createEndTime;
    }

    public void setCreateEndTime(String createEndTime) {
        if(StrUtil.isNotEmpty(createEndTime)){
            createEndTime = createEndTime + " 23:59:59";
        }
        this.createEndTime = createEndTime;
    }

}